package com.kui.service;

import java.util.List;

import com.kui.dao.FilesDao;
import com.kui.entity.Files;

public class FilesService {
	private FilesDao dao = new FilesDao();

	public List<Files> findAllByFolderId(String folderid) {
		return dao.findAllByFolderId(folderid);
	}

	public void save(Files f) {
		dao.save(f);
		
	}

	public Files findNameByFileName(String filename) {
		return dao.findByDownname(filename);
	}

	public Files findByIdAndEmpId(String fileid, String id) {
		return dao.findByIdAndUserId(fileid,id);
	}

	public void delById(String fileid) {
		dao.delById(fileid);
		
	}

	public Files findById(String fileid) {
		return dao.findById(fileid);
	}

	
}
